import http from "@/api";
import { PORT1 } from "@/api/config/servicePort";

// 获取科目列表
export const getAllSubjectsApi = (params?: any) => {
	return http.post(PORT1 + "/question/getAllSubjects", params, {});
};

// 新增科目
export const addSubjectApi = (params?: any) => {
	return http.post(PORT1 + "/question/addSubject", params, {});
};

// 删除科目
export const deleteSubjectApi = (params?: any) => {
	return http.post(PORT1 + "/question/deleteSubject", params, {});
};

// 获取考试类别
export const getAllExamClassApi = (params?: any) => {
	return http.post(PORT1 + "/exam/getAllExamClass", params, {});
};

// 获取考试子类别
export const getExamClassesApi = (params?: any) => {
	return http.post(PORT1 + "/exam/getExamClasses", params, {});
};

// 添加考试类别
export const addExamClassApi = (params?: any) => {
	return http.post(PORT1 + "/exam/addExamClass", params, {});
};

export const deleteExamClassApi = (params?: any) => {
	return http.post(PORT1 + "/exam/deleteExamClass", params, {});
};
